package com.example.mypark

import android.app.Application
import android.content.Context
import com.alibaba.android.arouter.launcher.ARouter
import com.tencent.mmkv.MMKV


class App:Application() {

    companion object{
        lateinit var baseApplication : App
        fun getContext():Context{
            return baseApplication
        }
    }

    override fun onCreate() {
        super.onCreate()
        baseApplication = this
        MMKV.initialize(this)

        ARouter.openDebug()
        ARouter.openLog()
        ARouter.init(this)
    }
}